<include file="Public:header" />
<include file="Public:left" />
	<form action="{:url('member/edit')}" method="post" enctype="multipart/form-data" id="brandForm">
	<input type="hidden" name="id" value="{$res.id}"/>
     <section>
      <h2><strong>用户编辑</strong></h2>
      <ul class="ulColumn2">
        <li>
            <span class="item_name" style="width:120px;">用户账号：</span>
            <span>{$res.nickname}</span>
        </li>

	    <li>
            <span class="item_name" style="width:120px;">用户积分：</span>
            <input type="text" value="{$res.integral}" class="textbox textbox_295" name="integral" id="integral" placeholder="用户积分"/>
        </li>

        <li>
            <span class="item_name" style="width:120px;">大转盘次数：</span>
            <input type="text" value="{$res.wheel_time}" class="textbox textbox_295" name="wheel_time" id="wheel_time" placeholder="大转盘次数"/>
        </li>

        <li>
            <span class="item_name" style="width:120px;">砸金蛋次数：</span>
            <input type="text" value="{$res.egg_time}" class="textbox textbox_295" name="egg_time" id="egg_time" placeholder="砸金蛋次数"/>
        </li>

        <li>
            <span class="item_name" style="width:120px;">摇一摇次数：</span>
            <input type="text" value="{$res.shake_time}" class="textbox textbox_295" name="shake_time" id="shake_time" placeholder="摇一摇次数"/>
        </li>
	   
        <li>
            <span class="item_name" style="width:120px;"></span>
            <input type="button" class="link_btn" value="提交"/>
        </li>
      </ul>
     </section>
	 </form>
     <!--tabStyle-->
     <script type="text/javascript">
     $(document).ready(function(){
		 //tab
		 $(".admin_tab li a").click(function(){
		  var liindex = $(".admin_tab li a").index(this);
		  $(this).addClass("active").parent().siblings().find("a").removeClass("active");
		  $(".admin_tab_cont").eq(liindex).fadeIn(150).siblings(".admin_tab_cont").hide();
		 });
		 $(".link_btn").click(function(){

            if($("#integral").val()==""){
				alert("积分不能为空!");
				return false;
			}

            if($("#wheel_time").val()==""){
				alert("大转盘次数不能为空!");
				return false;
			}

            if($("#egg_time").val()==""){
				alert("砸金蛋次数不能为空!");
				return false;
			}

            if($("#shake_time").val()==""){
				alert("摇一摇次数不能为空!");
				return false;
			}
			$("#brandForm").submit();
		 });

		 });
     </script>

 </div>
</section>
</body>
</html>
